<?php session_start();

if(empty($_SESSION['u_name']))
	header("Location:../index.html");	

if(isset($_GET['logout']))
{
	session_destroy();
	header("Location:../index.html");
}	
?>

<html>
	<head>
		<title>BioFactory</title>
		<link href="../css/style2.css" rel="stylesheet" type="text/css"/>	
	</head>
	<body style="overflow:hidden">
		<div id="topbar">
			<div id="TopSection">
				<h1 id="sitename"><span><a href="#">Bio</a></span><a href="#">Factory</a></h1>
				<h1 id="nivel"><span><a href="#">Administrativo</a></span></h1>
				<div id="topbarnav"></div>
				<div class="clear"></div>
				<ul id="topmenu">
					<li class="active"><a href="cadastro/cadastro.php" target="homeiframe">Home</a></li>
					<li><a href='sistema.php?logout'>Logout</a></li>
				</ul>
			</div>
		</div>
		<div style="width:100%; height:89%;">
			<iframe name="homeiframe" id="homeiframe" src="cadastro/cadastro.php" align="top" hspace="0" vspace="0" frameborder="0" style="height:100%;width:100%;"></iframe>
		</div>
	</body>
</html>